﻿using System.Web.Http;

namespace InnovaApp.Portals.MVC4Portal.App_Start
{
    public class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            //config.Routes.MapHttpRoute(
            //    name: "DefaultApi",
            //    routeTemplate: "api/{controller}/{id}",
            //    defaults: new { id = RouteParameter.Optional }
            //);

            config.Routes.MapHttpRoute(
            name: "CountryApi",
            routeTemplate: "api/country/{action}",
            defaults: new { controller = "CountryApi" }
            );
        }
    }
}
